package com.audible.library.view.backing;

import java.io.Serializable;
import java.util.Date;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;

/**
 * The class represents view information related to purchased audio book.
 *
 * @author Jigar
 * @version 0.1
 */
@Named
@SessionScoped
public class PurchasedAudioBook extends AudioBook implements Serializable {

    private static final long serialVersionUID = -5599355603863425708L;

    private Date purchaseDate;
    private boolean downloaded;
    private RateReview rateReview;

    public PurchasedAudioBook() {
        super();
    }

    /**
     * @return the rateReview
     */
    public RateReview getRateReview() {
        return rateReview;
    }

    /**
     * @param rateReview the rateReview to set
     */
    public void setRateReview(RateReview rateReview) {
        this.rateReview = rateReview;
    }

    /**
     * @return the purchaseDate
     */
    public Date getPurchaseDate() {
        return purchaseDate;
    }

    /**
     * @param purchaseDate the purchaseDate to set
     */
    public void setPurchaseDate(Date purchaseDate) {
        this.purchaseDate = purchaseDate;
    }
    
    /**
     * @return the downloaded
     */
    public boolean isDownloaded() {
        return downloaded;
    }

    /**
     * @param downloaded the downloaded to set
     */
    public void setDownloaded(boolean downloaded) {
        this.downloaded = downloaded;
    }
}
